<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>搜索结果列表页</title>
</head>
<body>


<div align="center">

    <div style="margin-top: 5%">
        <form action="/" method="get">
            <div align="center">
                <input type="text" name="args" placeholder="搜寻" style="width:520px;height: 32px"/>
                <input type="submit" value="Search" style="height: 36px;"/>
            </div>
        </form>
    </div>

    <p style="color: #a3d0c3">
        总共找到{{ value }}条数据,耗时{{ took }}ms
    </p>
    {% for data in metadata %}
    <div style="width:60%;margin-top:1%;padding:1%;text-align:left;border: 1px solid #b2dba1">
        <p>房子标题:{{ data.source.fangtitle }}</p>
        <p>房子价格:{{ data.source.fangprice }}</p>
        <p>房子地址:{{ data.source.fangaddress }}</p>
        <a href={{ data.source.fanghref }}>{{ data.source.fanghref }}</a>
    </div>
    {% endfor %}


    <div style="margin-top: 1%">
        <a href="?page={{ pre_page }}&args={{ args }}">上一页</a>
        &nbsp;&nbsp;&nbsp;
        <a href="?page={{ next_page }}&args={{ args }}">下一页</a>
    </div>

</div>
</body>
</html>